package grailsforum

class ForumTagLib {

    def loginToggle  = {

        if (session.user){

            out << message(code: 'forum.user.loggedinas', args: [session.user.email]) + ', '
            out << "<a href='${createLink(controller: 'users', action: 'logout')}' >" + message(code: 'forum.labels.logout')+ "</a>"
        }
    }
}
